﻿using AutoMapper;
using B.S.BaseData.Domain.Entities.Logs;
using B.S.BaseData.Domain.Entities.Meeting;
using B.S.BaseData.Domain.Entities.RBAC;
using B.S.BaseData.ErrorCode;
using B.S.BaseData.WriteAPI.Dtos.Users;
using B.S.DataBase.EFCoreServiers.Dtos.Depts;
using B.S.DataBase.EFCoreServiers.Dtos.Logs;
using B.S.DataBase.EFCoreServiers.Dtos.MeetingReservations;
using B.S.DataBase.EFCoreServiers.Dtos.Meetings;
using B.S.DataBase.EFCoreServiers.Dtos.Permissions;
using B.S.DataBase.EFCoreServiers.Dtos.Roles;
namespace B.S.BaseData.WriteAPI.Utils
{
    public class MapperProFiles:Profile
    {
        public MapperProFiles()
        {
            CreateMap<Role,AddRoleDto>().ReverseMap();

            CreateMap<Department,AddDepartmentDto>().ReverseMap();
            CreateMap<AddPermissionDto, Permission>().ReverseMap();

            CreateMap<AddUserDto, User>().ReverseMap();

            CreateMap<AddMeetingRoomDto, MeetingRoom>().ReverseMap();
            CreateMap<UpdateMeetingRoomDto, MeetingRoom>().ReverseMap();

            CreateMap<AddMeetingReservationDto, MeetingReservation>().ReverseMap();
            CreateMap<UpdateMeetingReservationDto, MeetingReservation>().ReverseMap();
            CreateMap<AddOperationLogDto, OperationLog>().ReverseMap();
           
        }
    }
}
